import request from '@/utils/request'

// 查询用户门店关联信息列表
export function listUserShopRelation(query) {
  return request({
    url: '/ruoyi/userShopRelation/list',
    method: 'get',
    params: query
  })
}

// 查询用户门店关联信息详细
export function getUserShopRelation(relationId) {
  return request({
    url: '/ruoyi/userShopRelation/' + relationId,
    method: 'get'
  })
}

// 新增用户门店关联信息
export function addUserShopRelation(data) {
  return request({
    url: '/ruoyi/userShopRelation',
    method: 'post',
    data: data
  })
}

// 修改用户门店关联信息
export function updateUserShopRelation(data) {
  return request({
    url: '/ruoyi/userShopRelation',
    method: 'put',
    data: data
  })
}

// 删除用户门店关联信息
export function delUserShopRelation(relationId) {
  return request({
    url: '/ruoyi/userShopRelation/' + relationId,
    method: 'delete'
  })
}
